//************************************************************************
// author	:	vera												
// date		:	2011/4/3 1:28 					                 
//************************************************************************
#ifndef SL_VIEWPORT_H_
#define SL_VIEWPORT_H_
#include "Config.h"
#include "DrawAtrribute.h"
namespace sl
{
	class SL_EXPORT Viewport : public DrawAtrribute
	{
	public:
		typedef u32	value_type;
		Viewport(void);
		Viewport(value_type x, value_type y, value_type width, value_type height );
		~Viewport(void);

		void set( value_type x, value_type y, value_type width, value_type height );

		virtual void apply( State * states );

	private:

		value_type	m_x;
		value_type	m_y;
		value_type	m_width;
		value_type	m_height;
	};

}

#endif
